import { postMethod, getMethod } from "../../../../utils/http";

export async function getList(location) {
    return await postMethod(`xyxy/wxapp/web/banner/list?location=${location}`, {});
}

export async function add(location,image) {
    return await postMethod(`xyxy/wxapp/web/banner/save`, {
        params:{
            location,
            image,
        }
    });
}

export async function queryItem(id) {
    return await postMethod(`xyxy/wxapp/web/banner/detail?id=${id}`, {});
}

export async function edit(location,image) {
    return await postMethod(`xyxy/wxapp/web/banner/edit`, {
        params:{
            location,
            image,
        }
    });
}

export async function del(params) {
    return await postMethod(`xyxy/wxapp/web/topCard/del`, {
        params,
    });
}

// 

